-- GENERATED SPELL FOR [Vile Sting] --


function spell0_5937(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(8257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5937', 30000, 1)
end

function Sorts_5937(pUnit, Event)
local choix_sorts_5937 = math.random(0, 0)
if choix_sorts_5937 == 0 then
pUnit:RegisterEvent('spell0_5937', 1, 1)
end
end

function mob5937_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5937', math.random(1500, 3000), 1)
end

function mob5937_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5937_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5937_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5937, 1, 'mob5937_Action')
RegisterUnitEvent(5937, 2, 'mob5937_Leave')
RegisterUnitEvent(5937, 3, 'mob5937_Kill')
RegisterUnitEvent(5937, 4, 'mob5937_Die')
